<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"import="base.*,pojo.*,service.*,java.util.*,java.sql.*,java.text.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#left{
	height:600px;
	width:650px;
	position:absolute;
	margin-right:20px;
	border:solid;
	left: 482px;
	top: 20px;
}
#right{
	height:600px;
	width:360px;
	float:left;
	margin-right:20px;
	border:solid;	
}
#s{
   height:40px;
   width:490px;
   margin-bottom:5px;
   }
 #top{
      font-size:24px;
	  color: #FF0000;
	  margin-top:10px;
	  margin-bottom:10px;
	  
 }
 body{
	margin:0;
	padding:20px;
	background-image:url("images/innerBJ.jpg");
	background-repeat:no-repeat;
	font:80% Arial, Helvetica, sans-serif;
	color:#555;
	line-height:100%;
}  


</style>     
</head>
  <body>
  <div  id="left">
    <div id="top">菜单信息</div>
  <%
	request.setCharacterEncoding("utf-8");
	OrderService os = new OrderService();	
	String coad = request.getParameter("coad");  		
	List<orderDetail> list = os.getorderDishes(coad);
		 
%>
<center>

	<table width="500" border="1">
      <tr>
        <td width="150" height="30"><div align="center">菜品名称</div></td>
        <td width="150"><div align="center">预订数量</div></td>
        <td width="150"><div align="center">菜品价格</div></td>  
      </tr>
<%
	for (orderDetail o : list) {
    out.println("<tr><td><div align='center'>"+o.getDishesName()+"</div></td>");
	out.println("<td><div align='center'>"+o.getNumber()+"</div></td>");
	out.println("<td><div align='center'>"+o.getPrice()+"/元</div></td></tr>");
	}
	%>

</table>
</center>
  </div>
<div id="right"><div id="top">基本信息</div>
<%
request.setCharacterEncoding("UTF-8");
order or=os.getOrderDetail(coad);
TableService ts = new TableService();
SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd");

%>
									<div class="field" id="s"><label>会员编号:</label><%=or.getMemberId() %></div>
									<div class="field" id="s"><label>会员姓名:</label><%=or.getCustomerName() %></div>
									<div class="field" id="s"><label>预定时间:</label><%=df.format(or.getCheckinTime()) %></div>
<%
                                    if(or.getType()==1){
                                    out.println("<div class='field' id='s'><label>就餐时间：午餐档(11:00-14:00)</div>	");
                                    }
                                    else out.println("<div class='field' id='s'><label>就餐时间：晚餐档(17:30-21:00)</div>	");
%>
<%
                                    if(or.getTableArea()==1){
                                    out.println("<div class='field' id='s'><label>餐桌类别：大厅</div>	");
                                    }
                                    else out.println("<div class='field' id='s'><label>餐桌类别：包厢(</div>	");
%>
									<div class="field" id="s"><label>餐桌类型:</label><%=ts.getType(or.getTableType()).getName() %></div>
									<div class="field" id="s"><label>电话号码:</label><%=or.getPhone() %></div>
									<div class="field" id="s"><label>身份证号:</label><%=or.getIDcard() %></div>	
<%
                                   if(or.getPay()==0){
                                   out.println("<div class='field' id='s'><label>未付款</div>	");
                                   }
                                   else if( or.getPay()==1){
                                   out.println("<div class='field' id='s'><label>付款方式：现场付款</div>	");
                                   }
                                   else out.println("<div class='field' id='s'><label>付款方式：网上支付</div>	");








 %>					
  </div>  
  </body>
</html>
